/**
 * Created by Dell on 2017.10.10.
 */
$(function(){
    // 加入载入图标
    var spinloading =new Spinner({radius: 10, length: 0, width: 8, lines:7,color:"#436c8f", trail: 40,className: 'myspinner'})
        .spin(document.getElementsByClassName('spinLoading')[0]);

    // javax发起请求时，显示载入图标
    $(document).ajaxStart(function(){
        $(".loadingDiv").show();
    });

    // javax请求结束时，隐藏图标
    $(document).ajaxStop(function(){
        $(".loadingDiv").hide();
    });
})